Current Location: Home> Function Categories> mt_getrandmax

mt_getrandmax

Display the maximum possible value of a random number
Name:mt_getrandmax
Category:math
Programming Language:php
One-line Description:Displays the maximum possible value of the random number.

Definition and usage

mt_getrandmax() displays the maximum possible value of the random number.

Example

 <?php
echo mt_getrandmax ( ) ;
?>

Try it yourself

grammar

 mt_getrandmax ( )

illustrate

Returns the largest random number that can be returned by calling mt_rand() .

Similar Functions
  • Sine sin

    sin

    Sine
  • Generate a random integer rand

    rand

    Generatearandominteg
  • Convert decimal to binary decbin

    decbin

    Convertdecimaltobina
  • Find the maximum value max

    max

    Findthemaximumvalue
  • Sow a better random number generator seed mt_srand

    mt_srand

    Sowabetterrandomnumb
  • Returns exp(number) - 1, and can calculate the exact result even when the value of number is close to zero. expm1

    expm1

    Returnsexp(number)-1
  • Hyperbolic cosine cosh

    cosh

    Hyperboliccosine
  • Cosine cos

    cos

    Cosine
Popular Articles